package com.example.app01.http

import okhttp3.OkHttpClient
import okhttp3.Request

object HttpUtil {
    fun sendOkHttpRequest(address:String, callback: okhttp3.Callback){
        val client = OkHttpClient();
        val request = Request.Builder()
                .url(address)
                .build()
        //直接封装好一个线程
        client.newCall(request).enqueue(callback);
    }
}